]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
[workspaceSwitcher] Display on primary monitor
authorAdel Gadllah <adel.gadllah@gmail.com>
Thu, 27 May 2010 17:57:08 +0000 (19:57 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Thu, 27 May 2010 18:10:19 +0000 (20:10 +0200)
Display it only on the primary monitor to be consistent with other
elements like the appSwitcher, messageTray and the overview.

https://bugzilla.gnome.org/show_bug.cgi?id=619854

js/ui/workspaceSwitcherPopup.js

index 20db9ef6e85a4b2d95b59c83e1b256535aa3d4ee..b638d995520b6b2fca527a8e42a635cd6456312b 100644 (file)
@@ -65,9 +65,9 @@ WorkspaceSwitcherPopup.prototype = {
     },
 
     _position: function() {
-        let focus = global.get_focus_monitor();
-        this._container.x = focus.x + Math.floor((focus.width - this._container.width) / 2);
-        this._container.y = focus.y + Math.floor((focus.height - this._container.height) / 2);
+        let primary = global.get_primary_monitor();
+        this._container.x = primary.x + Math.floor((primary.width - this._container.width) / 2);
+        this._container.y = primary.y + Math.floor((primary.height - this._container.height) / 2);
     },
 
     _show : function() {